@model IEnumerable<MilageMVC.ViewModel.VehicleViewModel>

@{
    ViewBag.Title = "All Vehicles";
}

<h2>Vehicles</h2>

<ul data-role="listview">
     @foreach (var item in Model)
    {

        <li> <h4>@item.Make @item.Name @item.Year</h4>
              @Html.ActionLink(item.DescriptiveText, "CreateByVehicle", "Mileages", new { id = item.VehicleID }, null)</li>
    }
</ul>
<hr />
@using (Html.BeginForm("Create", "Vehicles", FormMethod.Get))
{
    <input type="submit" value="Create Vehicle" />
}

 

    